<!DOCTYPE html>
<html>
<head>
    <title>Mini Web Server</title>
    <meta charset="UTF-8">
    <style>
        body { font-family: Arial, sans-serif; margin: 40px; }
        h1 { color: #333; }
        .link { margin: 10px 0; }
        a { color: #0066cc; text-decoration: none; }
        a:hover { text-decoration: underline; }
    </style>
</head>
<body>
<h1>欢迎使用 Mini Web Server</h1>
<p>这是一个简易的Java Web服务器示例</p>

<div class="link">
    <a href="/time">查看服务器时间</a>
</div>

<div class="link">
    <a href="/echo?name=张三&id=2023123456">测试GET参数回显</a>
</div>

<div class="link">
    <a href="/static/test.html">测试静态文件</a>
</div>

<h2>使用curl测试POST请求：</h2>
<pre>curl -X POST -d "key1=value1&key2=value2" -H "Content-Type: application/x-www-form-urlencoded" http://localhost:8080/echo</pre>
</body>
</html>